package com.fline.simplesys.service.impl;

import com.fline.simplesys.domain.User;
import com.fline.simplesys.mapper.UserMapper;
import com.fline.simplesys.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: csh
 * @Date: 2019/11/6 16:30
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {


    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByName(String username) {
        return userMapper.findByName(username);
    }

    @Override
    public User findByUserName(String userName) {
      return   userMapper.findByUserName(userName);
    }

    @Override
    public User findById(Integer id) {
        return  userMapper.findById(id);
    }
}
